<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jstl_if.jsp</title>
</head>
<body>
	<h3>단순 if문 사용</h3>
	<c:set var="age" value="20"/>
	<c:if test="${age>18 }" var="rst"/>
		나이가 18세라면 성년이다.(true or false): <c:out value="${rst }"/>
	<h3>결과 변수에 특정값 대입</h3>
	<c:if test="${age>18 }" var="result">
		<c:out value="성년 입니다."/>
	</c:if>
</body>
</html>